<?php
$viewdefs['edanz_MarketingText'] =
array (
  'EditView' =>
  array (
    'templateMeta' =>
    array (
      'form' =>
      array (
        'buttons' =>
        array (
//          0 => 'SAVE',
//          1 => 'CANCEL',
		0 => array( 'customCode' => '<input type="submit" value="{$MOD.LBL_ACCEPT_CHANGE_BUTTON_LABEL}" name="button" onclick="this.form.action.value=\'Save\';return check_form(\'EditView\');" class="button" accesskey="{$APP.LBL_SAVE_BUTTON_KEY}" title="{$MOD.LBL_ACCEPT_CHANGE_BUTTON_LABEL}"/>'),
		1 => array( 'customCode' => '<input type="submit" value="{$MOD.LBL_REJECT_CHANGE_BUTTON_LABEL}" name="button" onclick="this.form.action.value=\'{$RETURN_ACTION}\';this.form.module.value=\'{$RETURN_MODULE}\';this.form.record.value=\'{$RETURN_ID}\';" class="button" accesskey="{$APP.LBL_CANCEL_BUTTON_KEY}" title="{$MOD.LBL_REJECT_CHANGE_BUTTON_LABEL}"/>'),
        ),
        'headerTpl' => 'modules/edanz_MarketingText/showexisting_header.tpl',
        'footerTpl' => 'include/EditView/footer.tpl',
	'hideAudit' => true,
      ),
      'maxColumns' => '2',
      'widths' =>
      array (
        0 =>
        array (
          'label' => '10',
          'field' => '30',
        ),
        1 =>
        array (
          'label' => '10',
          'field' => '30',
        ),
      ),
    ),
    'panels' =>
    array (
      'default' =>
      array (
        0 =>
        array (
          0 =>
          array (
            'name' => 'messagetype',
            'label' => 'LBL_MESSAGETYPE',
//		'type' => 'readonly',
		'customCode' => '{$MESSAGE_TYPE}',
          ),
          1 =>
          array (
            'name' => 'language',
            'label' => 'LBL_LANGUAGE',
//		'type' => 'readonly',
		'customCode' => '{$LANGUAGE}',
          ),
        ),
	array(
		array( 
			'name' => 'old_message', 
			'label' => 'LBL_OLD_MESSAGE',
			'customCode' => '{$OLD_MESSAGE}',
		),
		array( 
			'name' => 'parent_name', 
			'type' => 'readonly',
		),
	),
      ),
	array (
		array(
			array(
				'name' => 'message',
				'label' => 'LBL_NEW_MESSAGE',
				'customCode' => '<textarea cols="60" rows="14" name="message" id="message" >{$NEW_MESSAGE}</textarea>',
			),
		),
	),
    ),
  ),
);

?>
